package cn.wawi.entity.data;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/*
 * 岗位表
 */
public class Post{

	@JsonProperty("id")
	private Long postId;           //岗位ID
	private String postDes;        //岗位描述
	private String postName;       //岗位名称
	private Trade trade;           //所属行业
	private List<Recruitment> recruitments;
	private List<Skill> skills;
	private Grade grade;
	private Integer status=1;
	
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	
	public List<Skill> getSkills() {
		return skills;
	}
	public void setSkills(List<Skill> skills) {
		this.skills = skills;
	}
	public List<Recruitment> getRecruitments() {
		return recruitments;
	}
	public void setRecruitments(List<Recruitment> recruitments) {
		this.recruitments = recruitments;
	}
	public Trade getTrade() {
		return trade;
	}
	public void setTrade(Trade trade) {
		this.trade = trade;
	}
	public Long getPostId() {
		return postId;
	}
	public void setId(Long id) {
		this.postId = id;
	}
	public String getPostDes() {
		return postDes;
	}
	public void setPostDes(String postDes) {
		this.postDes = postDes;
	}
	public String getPostName() {
		return postName;
	}
	public void setPostName(String postName) {
		this.postName = postName;
	}
	public void setPostId(Long postId) {
		this.postId = postId;
	}
	@Override
	public boolean equals(Object obj) {
		if(obj instanceof Post){
			Post p=(Post) obj;
			return this.postId==p.getPostId();
		}
		return super.equals(obj);
	}
	public Grade getGrade() {
		return grade;
	}
	public void setGrade(Grade grade) {
		this.grade = grade;
	}
}
